package com.heima.common.exception;


import com.heima.common.dto.ResponseResult;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class BaseExceptionHandler {

    @ExceptionHandler
    public ResponseResult a(Exception e){
        e.printStackTrace ();
        return ResponseResult.errorResult (500,"请联系管理员");
    }
}
